ensure only last occurence of pkg name is replaced
Merge pull request #3 from dagda1/regex

ensure only last occurence of pkg name is replaced