XD-1817: Redeploy modules in reverse order