Fixed snapshot-script file creation.