Remove redundant os check

Fixes #5045
Merge pull request #5068 from UtahDave/develop

Remove redundant os check