Removed check for process.platform as per comments.