Ensure good exit status from type
When looking to see if nproc is available we do not want warnings about 'type nproc' having bad exit.