Should not be using path split here. Check to make sure we're not using os.path.split anywhere