Updated Makefile to check for file existence.