Skip external symlinks when creating PHAR archive

I encountered a few repositories with (broken) external symlinks. These symlinks were not important for regular package usage (mostly tests data), but they break the PHAR archiver.

This patch skips any external link when creating the PHAR archive.