reverted to former make_tree_path()

* the last commit fix was unneeded, the problem was in how the function
was called.