Full rewrite of bash maker

The origional bash maker was confusing and seemed to have some bugs in it.  The new one is much less confusing and uses a template, which both makes it much easier to debug and allows the pipeline to be more customizable.