Finetunes the build script, and adds error checking for svn problems.