fixing issue with ldconfig check on linux-gnu