fixed makefile to be compatible without SGScript in PATH