In resource path remove any protocol when computing path instead of removing only file:/