Recover scripts when git clone fails for dirty dir

Fixes #6