Fix: Extract commandline arguments properly
Fix: Extract commandline arguments properly

1. awk fails to get the proper kernel commandline params as few of
the contain "=" character. Hence using a more easier way to get
the entire string.
2. Using str.replace instead of strip which only string leading or
trailing matches.
3. Also define output variable before use

Signed-off-by: Harish <067593f58491c1a57a54a0dcd26f34c5890837f5@linux.ibm.com>

open-power/op-test-framework,open-power/op-test-framework,open-power/op-test-framework