Added code to properly setup TERM based on OS type