fixed bad pattern based substitution that fails on paths with '.'
push new bugfix