dirname.go: Improve readability