### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

`PORTS_CHECK_DOCKER_IMAGE` is not configurable which prevents ECS tasks from running on air-gapped environment



### Expected Behavior

`PORTS_CHECK_DOCKER_IMAGE` can be configured via configuration option to allow use of any available image 

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

Run an ECS task in an environment where localstack/localstack is not available.

### Environment

```markdown
- OS: RHEL8
- Docker runtime version: Podman v4.2.0
- LocalStack: 1.3.1
```


### Anything else?

_No response_
"""Returns Localstack directory paths from the config/environment variables defined by the config."""
        
        
        
        INSTALL_DIR_INFRA = os.path.join(MODULE_MAIN_PATH, "infra")
        
        CACHE_DIR = os.environ.get("CACHE_DIR", os.path.join(TMP_FOLDER, "cache")).strip()
        
        VAR_LIBS_DIR = os.environ.get("VAR_LIBS_DIR", os.path.join(TMP_FOLDER, "var_libs")).strip()
        return Directories(
            static_libs=INSTALL_DIR_INFRA,
            var_libs=VAR_LIBS_DIR,
            cache=CACHE_DIR,
            tmp=TMP_FOLDER,  
            functions=HOST_TMP_FOLDER,  
            data=DATA_DIR,
            config=CONFIG_DIR,
            init=None,  
            logs=TMP_FOLDER,  
        )
    @staticmethod
    def legacy_for_container() -> "Directories":