Switched to process.cwd for retrieval of the cwd.