some fixes and additions for optirun completion

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>