Fix the target pattern matching in genlang. Not sure if it is the 'right' fix, but...