update to also allow the dataPathRoot to have forward or backslashes and pass the prepend check