configure: fix broken test for cuda