kconfig: refactor scanning and parsing "option" properties