fix `expand_path': couldn't find HOME environment