Fix run cosmics

Fixed `run_cosmics.py` . Now does not expect a output filename argument to run and instead creates the output file name based on the input filename.