Fix build script to copy the config file