fixed resourcePathToFilename, unit tests
Merge pull request #13 from krasa/paths

fixed #resourcePathToFilename, unit tests