Retry building installers.

During testing, sometimes I noticed building installers would crash
because of lack of memory.  This issue may be resolved, but for
robustness we retry building the installers until we succeed.