added auto os detection for dataPath