Switched OS detection from uname to OSTYPE