Fix autowiring-config to support both installed and in-place builds