fixed getFileName error in windows