.bash: use correct if statement for OS.