Test whether a downloads directory can be written to

Per #273.