use a wrapper for the gem list command

gem list returns installed packages in a form that is hard for CFEngine
to parse properly, write a small shell script that wraps the gem list
command and reformats it for CFEngine.