Fixed bug in if statement to determine OS