clean up the logic around path inspection
clean up the logic around path inspection

- Replaced the brittle `trimSlash` stuff with `require('path').normalize`.

jeffblack360/mojito,yahoo/mojito,ooskapenaar/mojito,jeffblack360/mojito,ooskapenaar/mojito,ooskapenaar/mojito,yahoo/mojito,jeffblack360/mojito,1950195/mojito,jeffblack360/mojito,yahoo/mojito,1950195/mojito,ooskapenaar/mojito,1950195/mojito