Added makefile for dirname, cleaned up dirname.c.