Specs for Dir[] with multiple #to_path patterns.
Fixed Dir[], .glob with multiple #to_path patterns. Closes #2983.