On BSD, realpath(3) doesn't fail if the target doesn't exist, so test