Improved update and backup scripts