\$HOME doesn't work as expected in a sudo started script.