fix issue with detection of home in GetCmsParents