Remove the last / from parent paths