Improve command TAB completion

Also add PGI support.