minor fix in selecting default dbdir logic
minor fix in selecting default dbdir logic

cention-nazri/libdbi-drivers,cention-nazri/libdbi-drivers,cention-nazri/libdbi-drivers,cention-nazri/libdbi-drivers