os undefined issue

Fixed an issue that caused an internal error with the message that OS
was not defined.

This was so stupid of me...