add slash if missing when extending path