Added the '/' selector for matching all files in the last search.
Some code refactoring.