Better path joining