buildman: Send builder output through a function for testing