correct getfilename on windows
fixed getFileName error in windows