Update gem to work properly with latest gem version.

It seems that Foreman gem has incorporated much of the logic that this
gem had implemented. I cleaned it up a bit and bumped the version up.