Make packaging script more generic and reusable.
Fix gem email.