Fixed getResourcesPath function