touchosc: make updateScript more readable and robust
Changes:
* factor out different system attrs for nixeval function
* factor out narhash function
* avoid doing work if version has not actually changed
* better support running script directly instead of via
maintainers/scripts/update.nix