replace jobs macro code with regexp

- replace code matching list of substrings with one regexp,
  it will simplify the code and produce better results
make the license_changes.txt configuration with full path
simplify regexp for macros