Properly read the os flag to fill in plugins