Instead of using non-portable features of GNU ln command, such as -T and --relative, use Python os.path.relpath function to handle it. This fixes installation failure on FreeBSD.