Added terminfo bell patching
Removed $TERM override