CI: restrict the build scripts used to build contribs
For example, updating a Windows build script shouldn't force the macOS jobs to rebuild contribs.
By default the script behaves the same as before. It requires giving a job name or target OS name to select the changes only for that OS.