use MAKEFILE_LIST to get the name of the top make file

While using Arduino-Makefile, I had some trouble getting it to work because my make file was called 'makefile'. This commit uses MAKEFILE_LIST to get the name of the top make file so it will work with any capitalization.