Handle exec() call with options (env, pty = true, etc).
Merge pull request #1 from tomas/master

Handle exec() call with options (env, pty = true, etc).