Preserve the script name

Copy the temporary file to the original `script_path` filename