fix Mathematica installation when X forwarding is enabled