[PATCH v2 54/60] buildman: Create a function to handle config and build