Create a subclass of the shell instead of a module

Fixes https://github.com/berkshelf/berkshelf/issues/1176