It never catches SLES inside that for loop. Its why I wrote that simple if test, as lsb-release is not the same on SLES. This is the entire /etc/lsb-release for SLES 11:
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"

As you can see it does not contain the fields needed to parse out the version and distribution name. Instead, the /etc/SuSE-release file contains this data. Here is an example from one of my production machines:

SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1