Look for paths between curly brackets

Added some code to look for paths between curly brackets. This is useful for LaTeX files.