fix flaw in path resolution
Merge pull request #5 from evindor/master

fix flaw in path resolution