fixed bug in how the input directory option was handled and implemented the regex filename matching