Changes process.umask type to not error out if incorrect.
Corrects tests that differ depending on Node version.