Improve check to make sure download dir is actually writable