[ticket/11604] Better handling of config.php in functional tests.

PHPBB3-11604

http://tracker.phpbb.com/browse/PHPBB3-11604