Use qEnvironmentVariableIsSet instead of qgetenv