improve the apply-bulletin-patches command