regexp in splitPath is modifed