Changed logic for testing to remove files in Makefile