[CB-4376] Read config.xml after "before prepare" hooks being executed.

Now config.xml is read after "before prepare" hooks have been executed.