Moved invoking shell into a package.

Change-Id: 7d8d2838d4