diff --git a/src/common/helpers.py b/src/common/helpers.py
index 04ab5f375de4d6b011031feca822403444271bab..1624fa3f6751a44b5ac83c1f3b1945835386a214 100644
--- a/src/common/helpers.py
+++ b/src/common/helpers.py
@@ -669,9 +669,8 @@ def get_os_info():
 			output = temp_failure_retry(child_stdout.readline).strip()
 			child_stdout.close()
 			child_stdin.close()
-			# some distros put n/a in places so remove them
-			pattern = sre.compile(r' n/a', sre.IGNORECASE)
-			output = sre.sub(pattern, '', output)
+			# some distros put n/a in places, so remove those
+			output = output.replace('n/a', '').replace('N/A', '')
 			return output
 
 		# lsb_release executable not available, so parse files