[COOK-4648] rule_exists does not check rule direction

Signed-off-by: Christopher Webber <cwebber@getchef.com>