patch for issue#2 - path checking now OS and platform agnostic

Checks for path should now work cross-OS on node, and cross-platform (node/browser).

I created a new boolean `inBrowser` to do the check once (where previous code was checking against the `exports` object).

Also make the use of double-quotes consistent.