Made config load and container profile config override more robust