The scripts directory is meant to contain all the scripts needed in the build.
The Makefile rule was too complex and these cases is better to just move it to a script where will be eassier to use sed properly and not looping over all the files 4 times.