Added conditional check for /etc/bashrc