Fixed tophat module bug where file paths were cleaned after output being written to run file