Improve "depends" function

- function will now print the packages at proper depths
- added newline between each result if called with multiple packages