Fix path to include used from multiple locations

When this code is instantiated from zc_install it sometimes triggers a path error. Using autodetection avoids that.