Change symlink breakout detection logic in archive package

Fixes #9375
@LK4D4 should this be `filepath.Base(path)` or `filepath.Base(rel)` ?