Fix issue when database source directory is empty

This fixes bysai crashes when running `bysai configure` and the database data directory is empty. This is the default state for `redis` (data dir is empty until databases are created) and `mongodb` no RHEL/CentOS.