Allow overriding build_type.

This is useful for testing the various publishing tasks on branches other than
master/beta/stable.