add os detection to bashrc