fixed .bashrc to correctly check if terminal is interactive