Fix Allcontinue script to run properly with sbatch