Makefile for non-gnu version of basename