Improved the parameter detection

Now it also detects inherited parameters from the hostgroup