Only try to detach kernel driver if we're running in Linux