Fixing how config file is built during tests