Modify to work better in a RHEL6/RHEL7 agnostic way
Correct typo in httpapi

Consoles would not work due to a type of dictionary name, correct the mistake