fixed run_cosmics.py bug. now creates output filename based on input filename