lib/package_remove.c: simplify link relative check.