Fix update script guard condition