closes issue 49, calculate file name correctly on windows