Fixes broken MariaDB installation due to non-existing directories