Avoid calling PATH.join on null or undefined.

It fails to start on a new machine with the latest node-webkit. With this fix it works.

Maybe the behaviour of PATH module was changed recently?