added platform check to bashrc