Fix RT#98579 (test failure with HOME=/)