Clobber if workdir exists but isn't a git checkout. Fixes #2531