Identifies whether we're running on Colab, in a container, on a cloud GPU
instance, or locally. Used by install_cuplyr() to apply environment-specific
fixes (e.g. CUDA stub disabling on Colab).
Usage
detect_environment(override = Sys.getenv("CUPLYR_ENV"))