Modified exports to avoid "terminal type 'dumb'" issue in magit