Fix incorrect path splitting.