Added KEYWORD to distinguished syntax-tokens.
Switched from parsing repl stdout to port-file for determining that the repl has started.