Fix syntax error on checking OS