Use svn cmdline tool to detect svn working copy

Tries to fix https://github.com/bradfitz/shipit/issues/11