update script enhanced for apt