fix berkeley db link logic, don't rely on FEDORA being set