Changed "/" to path.sep in code to determine subdirectory within dataset.