update regex when replacing paths in resources - @garoevans