Updating regular expression patterns.

Updading regular expression patterns for paths. Preventing any path
patterns proceeded by "newcommand{" from matching, and also preventing
"#" from matching for an "\includgraphics" path. This is to prevent
macro definitions from being misinterpreted as a path.