fix bug.

1. add HOME environment
2. remove out as it's not used.