add attr_accessor for config_dir to enable hiera.yaml parsing