fixed double slashes in getRelativePath()