Made all targets depend on the emk_rules.py that created the rule.
Fixed automatic dependency on emk_rules.py file so that it doesn't break things if the rules file doesn't exist (eg, for rules that are defined by a pre_module).