cmdlib: Fix minor checks in attach/detach
burning: Add attach/detach