Fix detectionof config options which are marked as optional
Small fixes
Merge pull request #7 from byo/fix_optional_config_check

Fix optional config check