Some minor fixes to the auto gem builder