improved stdp_rules to robustly handle wildcard cell paths