Update: convert build.modules object to array