Patch from https://github.com/wuub/SublimeREPL/issues/162