update regex for line; add additional paths for OSX