fixed run_cosmics.py to take an output name as param but still generate output names if executed from the commandline