Fixes issue with job history rerun and directory