Updated build config scripting. Updated some changes to custom rule.