Remove pointless path manipulation