Added a few checks during install

- Check if this is bash and return otherwise.

- Check if this is already installed and return otherwise. Protects against
  adding this multiple times e.g. if you source the file again by doing
  something like . ~/.bashrc in your shell.