Fix the problem that messes up MANPATH. Issue 393