fix the env setting of LD_LIBRARY_PATH/DYLD_LIBRARY_PATH
diff --git a/tsqa/environment.py b/tsqa/environment.py
index 6244a52..e95b7cd 100644
--- a/tsqa/environment.py
+++ b/tsqa/environment.py
@@ -273,8 +273,9 @@
         for env_key in ('LD_LIBRARY_PATH',  # for *nix
                         'DYLD_LIBRARY_PATH',  # for mac
                         ):
-            if environ.has_key(env_key) and self.layout.libdir not in environ[env_key].split(':'):
-                environ[env_key] = self.layout.libdir + ':' + environ[env_key]
+            if environ.has_key(env_key):
+                if self.layout.libdir not in environ[env_key].split(':'):
+                    environ[env_key] = self.layout.libdir + ':' + environ[env_key]
             else:
                 environ[env_key] = self.layout.libdir