Tweak +URLWithPath:… to treat local directories consistently