fixed sed error
merged with wouter fix for the mac makefile