Use path.join and fix spelling

Not sure if this works! Ninja committed it from github
Rather then just throwing the error maybe using something like https://github.com/davepacheco/node-verror might be a nicer interface for users