Update; optionally set build directory.