ffdc: Fix pathing when running within Robot Environment

- Extend path using absolute path as the base to discover subdirectories.

Test:
- Tested in robot framework and other environments.

Change-Id: I9d41076eeda988bfffdff4c8d3f38b0d5db3fe9c
Signed-off-by: Peter D  Phan <peterp@us.ibm.com>
diff --git a/ffdc/ffdc_collector.py b/ffdc/ffdc_collector.py
index ca79d17..f6a5a9c 100644
--- a/ffdc/ffdc_collector.py
+++ b/ffdc/ffdc_collector.py
@@ -15,7 +15,13 @@
 from errno import EACCES, EPERM
 import subprocess
 
-sys.path.extend([f'./{name[0]}' for name in os.walk(".") if os.path.isdir(name[0])])
+script_dir = os.path.dirname(os.path.abspath(__file__))
+sys.path.append(script_dir)
+# Walk path and append to sys.path
+for root, dirs, files in os.walk(script_dir):
+    for dir in dirs:
+        sys.path.append(os.path.join(root, dir))
+
 from ssh_utility import SSHRemoteclient
 from telnet_utility import TelnetRemoteclient