update_repositories.sh

correct check for existing git or svn command