Made scripts/check_style.sh be portable to OS X.