Clean_file was operating on the actual addon, not a copy, which was editing the addon permanently.
0.4
It is possible to write addons that can contain code that runs differently based om the verison of blender you are on. This is against the guidelines. Clean_file strips the code back to be only the code used for the version of blender under test.