remote: fix incorrect use of strcmp result