better handling of --after for sbatch generator