Improve release notes function to use PATTERN var if set.