Automatically pull sugar-build

Based on a patch by William Orr