Basic filename pattern matching algorithm in place.