Fix target os detection

Signed-off-by: Eddie Ringle <eddie@eringle.net>