Fixed wrong HOME environment variable while installing a package.