strip ending slashes from paths