better file handling support under windows