Wrap git/svn commands in try/except