Fix broken AMD check before exporting