Normalize the path params to File and Directory

This ensures consecutive slashes, '.', and '..' are properly
removed so other methods like relativize, and getBaseName return
the proper path.

Refs atom/tree-view#194
Email on Travis failures