Can this be the following instead: 

```
def username
  machine.config.sshfs.username || ssh_info[:username]
end
```