script update

script changes for grep and escaping round brackets in directory/request
titles.