Minor cleanup of code in pack task
Update pack task to include rubygems