Before trying to set scanner option, make sure they are active

Signed-off-by: Jerome Flesch <jflesch@gmail.com>