Implement AGLBuild script following SPEC-495 from JIRA