support nested structured folder, support cwd

- support nested structured folder
- support cwd
- add unit test against new features