fritz-tools: fix returning wrong values due to strncmp usage