Fix bug with os detected and os library