tlcl: automatically detect if platform hierarchy is disabled