Fixes FileExists check to work with MSVC