Fix several acceptance tests after the introduction of $(G.etc_group).

The main problem is that the path contains redundant '../../' parts
and the test doesn't expect that.

Redmine #4809.