Fix work with data_bag_path config value if it is array.

Actually data_bag_path could be an array (for example, in case if cookbook_path is defined in config as array and data_bag_path is not defined). But now there are invoking directory checking without any conversion.