shell/caucase.sh: Improve built-in test suite.

Simplify code a bit.
Change directory when starting caucased, so all files are stored inside
test's temporary directory (and not just the database).
Tolerate caucased not immediately starting.
Fix CA presence tests (well this is embarrassing).
List test directory content when failing, as it will get deleted shortly
after.
14 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
failed SlapOS.Eggs.UnitTest-Master.Python2

00:25:03

failed SlapOS.Eggs.UnitTest-Master.Python3

00:13:38

failed SlapOS.Eggs.UnitTest-Master.Python2

00:19:47

failed SlapOS.Eggs.UnitTest-Master.Python2

00:31:07

failed SlapOS.Eggs.UnitTest-Master.Python2

00:19:48

failed SlapOS.Eggs.UnitTest-Master.Python2

00:21:09

failed SlapOS.Eggs.UnitTest-Master.Python2

00:22:45

failed SlapOS.Eggs.UnitTest-Master.Python3

00:18:02

failed SlapOS.Eggs.UnitTest-Master.Python3

00:15:33

failed SlapOS.Eggs.UnitTest-Master.Python3

00:17:18

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:17

failed SlapOS.Eggs.UnitTest-Master.Python3

00:06:49

failed SlapOS.Eggs.UnitTest-Master.Python3

00:44:19

failed SlapOS.Eggs.UnitTest-Master.Python3

00:21:27