Fix OS detect by put static the function