Cleanup cuda/Makefile.am, move testing to configure.ac