Fix build and update scripts

Build now creates the build directory is needed and update assumes that the git
repository is already up to date and only updates files and submodules.