MB-11060: Fixes to dep download mechanism

Change-Id: I7e0bc2761c39320feb6ae88e0eee792362e8839f
Reviewed-on: http://review.couchbase.org/41754
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>