shell: Use "--has-foreground" option with "gear install".

Closes #828
Reviewed-by: Stef Walter <stefw@redhat.com>