Fix potential command line overflow in hooks--update