Fixes #5705: Update the OpenLDAP BDB migration postinst script to work p...

...roperly again

Ticket: http://www.rudder-project.org/redmine/issues/5705

To be merged in 2.10