fix Mathematica installation when X forwarding is enabled
Merge pull request #391 from boegel/mathematica_gui

fix Mathematica installation when X forwarding is enabled