Complete rewrite of the config file parser. Now it should detect