Revise cd for sbatch and add cn