Kpm pack generate bash scripts

parent #327 
Should we have an overload that does the string formatting built in?