Fix not working pattern matching and substitution (filter, patsubst)