Completer do not show all possible directories when token length is 1

Problem is in boolean endsWithParent() method which returns
incorrect value for token of lenght 1.