ctdb-scripts: Fix calculation of CTDB_BASE