taskd/clone.sh: fix typo in darcs error checking