dirname.go: Complete functionality of dirname.go

* Fixed bug where the else statement would not function.
* Reworked if/else statement so that it can loop through all files.
* Added zero mode.
* Improved help_text