alias doesn't work in scripts. I could manually patch /usr/bin/egrep, but really why? What are we saving by getting rid of two microscopic shell scripts?
Alias at the top of your script. Sure /bin/bash doesn't read .bashrc when ran in batch mode, doesn't mean you can't patch your script.