Fix paths when the resourcePath is not /