core.actions: fixed _MacroTemplate.idpattern

Thanks to trupanka for pointing out the problem at
https://github.com/hut/ranger/issues/175