[bash] How to detect the OS from a Bash script?