Make secondary filesystem comparation more robust