perform the complete submission check only if there is no executed code file (so only for REPL mode)
added test for not performing submission complete check for script mode
Merge pull request #804 from filipw/bugfix/802

do not inspect code for submission completeness when executing script