build: Correctly detect unsupported architectures

Fix this check.