#20: Pattern matching finally works. Added docstring to _is_working_path().
#11, #20: Added docstring to _collect_paths().