Handle options such that you can use dune-codegen outside of the CMake workflow

Currently, the first occurence of a get_option will fail to parse an inifile...

I would like to see more flexibility here, especially to test components in IPython notebooks. Ideas are highly welcome.