Fix bug in path::split