Rewrite paths for aesthetics.