Fixed detect_job_file