Modified build script to correct copy errors