Fixed some if checks in bashrc_custom.