Make file existence test synchronous