Added path-splitting and -joining functions