Fix command tab completion in global window.

The way this works is icky, but the fix for the actual issue
is fairly straight forward.

Fixes #41
Merge pull request #87 from csmith/master

Fix command tab completion in global window.