Refactoring wget log in create_scripts.cpp