Renamed exist to FileExists which now takes a const std::string& as parameter. Extracted parts of load_script.