Improve startup exceptions.
Allow subclasses to add extra keys to the environment.
Allow to specify cwd/env for the interpreter.
Style fix.