add avalon2 support to build scrpt file