update.sh improvements, add basic config support.