Fix NPE in AbstractShellIntegrationTest

Clean up of DB didn't test for the directory existence.