Fix file existance check.