Fix NN for remote jobs

Also add tests to ensure `NN` behaves correctly to submit number equals 100.

(For some reason, `log/job/${CYCLE}/${TASK}/NN` is not getting created for remote jobs when I submitted #1069. I am certain I tested this sort of things at various points while I maintained the branch, but that might have been lost after so many merge and re-base operations.)
Ouch. Is this on a shared file system between the suite host and the job host?