Fix directory dump name by removing sql suffix.