red-brick: Proper download cancel handling and directory writable check for
log downloads