Ensure registry and index directories are created at application startup time