I didn’t know that osx doesn’t have the tree command, I guess I have been taking the linux dev env for granted. Here is a quick little guide to install tree from source. It will make your life a lot easier.
http://shaunchapmanblog.com/post/329270449/how-to-install-the-tree-command-on-mac-os-x