Add OS checking

Signed-off-by: Severen Redwood <severen.redwood@gmail.com>