Improve path* implementations