Only write the fetch.txt file is there's data for it.

If there's no data and the file exists, this will also remove it.

Fixes #8.