fix file loading on windows