Update bashrc

Just use shell logic (which works in non-bash-like shells) instead of bash specific-isms...