Issue #24

This modification appears to make it work outside tmux as well.