Kpm pack generate bash scripts

parent #327