Use "unless" instead of !=

Signed-off-by: Tim Serong <tserong@suse.com>