Switch to using bash here and put back in the svn stuff