chmod
made extra argument passing more robust
jobnum as cmdline arg