Acyclicity of complexes of flat modules