nix-channel: fix bug when getting path-info
nix-channel: fix bug when getting path-info

Cherry pick https://github.com/tuna/tunasync-scripts/commit/86950766c90ba4ec6976456c87d5a1eac157f487

ustclug/ustcmirror-images,ustclug/ustcmirror-images,ustclug/ustcmirror-images,ustclug/ustcmirror-images,ustclug/ustcmirror-images