Add support for b2g-inbound builds

We need to clean additional groups here, and return only time, or if we need to keep groups[0], we can give a name value. Current solution leads to a highly coupled code