Fix passing arguments to build. Get deps before building.