fixing bug in generated Makefile