correct getfilename on windows