fix option scope

Change-Id: Iccdccceae0f015ed0772121ceba914d04ed6f2de
Reviewed-on: http://review.couchbase.org/40230
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: buildbot <build@couchbase.com>