fixed the bug about file extensions missing when extracting single file archives