remove PREFIX from Makefile template
add beginnings of script