Prevent file erasing of file contents and create backup

This commit prevents the erasing of the file ("fixed" version length is 0) and creates a backup. Also fixed the was_fixed Boolean logic (by default is true and becomes false if any test fails), because it was keeping only keeping the status of the last fix.