Allow to override search patterns in sub-classes.

Change-Id: I6917efe18d18b9f757d0ae0e9f40e8c0b9982504