Remove ending / from path