Get filename correctly for Windows