build: use a separate variable checking the subdir path (for host packages)