This fixes another issue, namely webBoxio/atom-term2/issues/27

This fixes the issues seen on https://github.com/webBoxio/atom-term2/issues/27 in the upstream.