Using iterative filesystem walk instead of recursive

A post was split to a new topic: Path functions confined to one file system