Removing superfluous path elements from the git directory.
Now uses TERM to check for the alternate screen.

tmux doesn't set WINDOW like screen does.