fixed issue with regexp matching of input files