Replace tags from variables

Please add supporting path replacement for variables in templates.
Merge pull request #159 from ct4n/patch-2

path_replace run on after_filter instead of before_filter