Remove / at end of path