Better detection of build root.