Change path breakout detection logic in archive package

Fixes #9375

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
Merge pull request #9378 from LK4D4/change_breakout_detection

Change symlink breakout detection logic in archive package