Attempt to make file/dir checks pass on windows and linux