gupdate: Add the script gupdate

This script detects the current OS/distribution and updates the system
accordingly.