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