test: Fix a typo in Makefile. dirname was to be used, not basename.