tweak build script to fix deploy