Use `whoami` instead of $USER

If TMPDIR doesn't exist, USER also may not exist. `mkdir` then throws an error
after this because TMPDIR is /tmp/, which already exists.