Fixes #6202: Ajaxifies data dir migration