Fixed release build detection for CI.