Bedrock: script to compare a rewrite rule agains activation status