Update the Makefile to auto-detect graph filenames