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

Hello!

I participate in http://24pullrequests.com/ (Christmas pull request competition). Here's my pull request, wich fixes https://rt.cpan.org/Public/Bug/Display.html?id=98579 .

Thanks for cool software!

WBR, basiliscos.