Fix paths by removing some extra '/'s.