Add some functions to Path.