Better loading of YAML configuration