Fixed an issue with the HOME environment variable when committing.