Revert "Do not depend on HOME env var"

This reverts commit 8e8202d027f1edf61e0c7a44df5f88d75c68ce33.