Clean fstream in create_scripts.cpp