Fix --build-only.

--build-only requires that we don't assume there is a working cloud
at any point other than when we are actually doing deploys.

Change-Id: I53603f3da2e0db3db1fd2928be3964e6aca662af