Try renaming all instances of @@projectname@@, @@binaryname@@ and basically everything else you see with two @@.
ted's template was meant to be placed in the theos templates folders, so when you run nic.pl, it would create a project for you and ask you for all the info such as project name, binary name, package name and version. However you can still accomplish all of this by renaming everything manually
Note: this could also just be a bad build of theos