Using a signal handler to remove the link on exit.
check-packages.sh moved to ports directory.