update buildscript for RE and UE