Generic archive extracting mechanism