rename old_file to sb_file, clear contents of script file before writing modifications to it.