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