Merge pull request #9 from BRAINSia/FixPathSearching

Fix path searching