Wait until file exists.