update treegen command : now works for other paths

initially treegen's limit was to generate tree like structure
for $PWD only, means you had to cd inside a directory to use
treegen in it.

now it accepts any path as argument and generate treegen result
for it, so you can use treegen without 'cd' to that path.