[backend] fix useforbuild comparison