Hmm `lsbdistmajrelease` doesn't exist on my RHEL 6.2 system. That looks like a Debian-ish fact, are you sure thats the one?