Implement very basic async readFile for tests

This is for usage of .env with somethingToAutodetect. This API is not
actually supported in the browser, but we need to make it work for our
own tests.