fix file_name string properly according to xz ending