add #set_home and #user_logged_in to avoid missing home path

a fix for 
```ruby
ENV["HOME"] 
```
not being set