ifelse and isvariable was unreliable when LSB was not found

(cherry picked from commit d888deda339e8d290879d6a98be3242861ebd305)
OS description support for Windows

(cherry picked from commit a3702702638b0ce4cfe0118133902d4445c9516f)