Normalises the crap of paths