Do default maxjobs computation in nightly.sh (dirname error)