Fix check in os crate