Clean the path to account for backreferences '..'