Merge pull request #13 from willscott/master

Fix Node 0.11 error when path is frozen.
Update detector/test to mock process.platform