This is true. I tried to make them as generic as possible, so whenever I have to update one of the files, I can just copy/paste a fix to all other files.
This also let's me add other checks/fixes more easily.
I wasn't sure about the best way of having a bash library. Any ideas about this are welcome to hear.