Improve error checking in nightly

Add error checks to nightly for the CHPL_NIGHTLY_LOGDIR value that would
have made the issue fixed by #658 easier to realize.