fixed script
Makefile fixes