ENV_DIR is not passed to `detect`, always assume it should be set.