[CB-4774] Updated prepare flow to make platform config.xml a build
output