Since you're calling local_CompileAgain in a script expression, see here for preventing multiple calls to this function, which could affect build behavior:
http://www.kinook.com/Forum/showthre...?threadid=4767
If that doesn't help, please ZIP and post the build log file.