fix autocomplete for symlink directories