Bug correction in path_replace

Ok, I think this should be working. I tested it and didn't find any errors. I hope there won't be side effects.

The basic idea is to say that the (.*?) between any tag and its src *should not* contain any opening tag (<). This way, I can avoid conflicts such as described in issue #33.