Remove trailing / from path