Fix attachment extraction buglets, make attachments discoverable in CLI