Corrected for exception encountered when splitting windows paths as strings.
Implemented separate function for path split.