Fix c&p bug in rotmg gen introduced by addBuildOpt change