Added --directories-as-tags functionality

Also a minor typo correction
Added a .gitignore
Handle indirect repos - set tags to empty.