fix error related with checking current OS