yara add can open template rule

`ret` is usually an error indicator; please change its name to something more meaningful :)