Don't assume `whoami` exists

Solaris doesn't have a `whoami` command.