scripts: updated check_bashrc.d.sh to work on OS X