Added 'detect_arch' and updated K_GENPATCHES_VER