Fix bashrc install when invoked non-interactively.