Corrected build file and corrected the method used to extract the hierarchical name.