Fix defect: Incorrect usage of uname on OSX.
Perform os specific support checks using subshells.