updated the bash scripts to not use regex; this makes them compatible with all versions of osx, including the new version of grep in 10.8 which removes the -P flag [erg\!]