Improved the parameter detection

Now it also detects inherited parameters from the hostgroup
Merge pull request #1 from david-caro/fix_hostgroup_inheritance

Improved the parameter detection