Add missing [ ] for test.
Handle when git-svn fails to prevent build break.

This can happen if the user has git without git-svn support.