Fixed directory searching and filtering on opening a repo