.bashrc.my: check_for_local_history: make it work withou grep -P

After upgrade to Mavericks can’t brew install grep:
https://github.com/Homebrew/homebrew/issues/30823