[FIX] CLI: check HOME variable. Fixes #773