...G...... [ZBX-7098] reorganized branching to get a single function return point in is_same_file()