no need to create a second file just for the version when it can be set
in lib.sh
git -c safe.directory is needed to be able to run rev-parse as root
also contains some minor refactors to arg parsing etc
The build process only replaces @@MKLIVE_VERSION@@ with the correct
version string. This can also be done by simply sourcing a version.sh file.
This way it's simpler, avoids one unnecessary build step and people
won't accidentally run an old version of a script.