I would have just done

```coffee
historyFile: path.join(process.env.HOME, '.coffee_history') if process.env.HOME
```