Implement isValidPath and expandPath
Merge pull request #1 from alexcoco/path-helpers

Implement isValidPath and expandPath