Corrected output file path by replacing "/mnt/galaxyData/files/000" with tmp_dir variable