fix of fix of #resourcePathToFilename
Merge pull request #14 from krasa/paths

Proper fix of #resourcePathToFilename