setup: Fix on conditional version check for check()