Always use HOME variable

Since ~/ sometime seems to fail the HOME variable is more safe.