Check for existance of process, not for a missing window property

Allows us to run in node-webkit