Kpm pack generate bash scripts

parent #327 
Fixed