Refactor directory change into the #sh_string

Since the 'cd root' has been added to every command so far, I am
refactoring it into the #sh_string command itself.
Refactor search methods into Repository

They have been removed from the Manager and Runner.
Tests have been added for both search methods in the process.