Fixed no file error detection on Windows