fix device-management and loading from clean Emacs environment