Export: Fix host dependencies (thx Alexander Leisentritt)

Includes a fix for Icinga 2 export method too.

Refs #2370
Merge branch 'fix/host-dep-2370' into support/1.4

Fixes #2370