Improved autocomplete

The autocomplete now includes commands in addition to paths and
options.