Fixed file existence test