Use whoami instead of the USER variable.