Also shouldn't this be an `if os.path.isfile("%s/couchbase-cli" % d):`?