sd_first_drive is only used when HAVE_HOTSWAP is defined, so add appropriate #ifdefs