Fix handling for file checking (it raise OSError on windows if invalid path like missing drive).
Fix handling for file checking (it raise OSError on windows if invalid path like missing drive).

SectorLabs/pytest-benchmark,thedrow/pytest-benchmark,ionelmc/pytest-benchmark