don’t call whoami so many times

- handle exceptions from whoami
- use USER environment variable
- don’t display blank line if whoami is blank
remove deprecation warnings from spec