Fix tree function to return absolute paths.