Fixing $JOB_DIR