Ensure both LOGNAME and USER are set