Add extra step to build to ensure master is checked out

(Once you have done build.sh once it's better to use mvn to build
anyway)