Review 28144

C. Thomas Tyler
Fixed issue operating in environments where the shell USER variable is not
defined. The current USER is now determined with 'id -u -n'.

Also silenced a harmless ShellCheck warning.
Tip: Use n and p to cycle through the changes.