Add directory separator to autocomplete. Fixes #984