Fix ubuntu Jenkins dockerslave build scripts

Change-Id: I549f004417e7245382a2e06a3f49055e261f3dd1
Reviewed-on: http://review.couchbase.org/44639
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Chris Hillery <ceej@couchbase.com>