Hi. Some tiny bug fixed

SHA: 2222fc1b775c006b9f1e44da142551cbbf3b175a
HOME env is not always set.
Please pull.