Adding multiple directory functionality

Specifying multiple directories with a file filter did not work. This adds that functionality.