Fix AppendPath so that it works for paths with native backends