Fixed Output filename creation

Changed the output filename to use the c_str(), and updated the run
macro.