Fixes OS type check to use os package not process.