Extraction adapted to archive type
Replaced ugly bash with nice execute
Fix guard before login replacement
Fix tests when using secret_key