aws/update-drupal-settings: several subtle fixes to regex