Fix file exists check.