Why are you setting the HOME variable here? We were following the code path a little bit and didn't see anything that required HOME to be set.