dirname.go: fix missing function argument

I'm not sure how I missed this.