migrations: do not fail on HW without /cfg/sysrepo

Apparently, nothing creates that directory when updating from ancient
version (by ancient, I mean a fresh-out-of factory v4-189-g2f58481). And
in fact, I think nothing would create that even on a brand new box
today.

Change-Id: I8fce63df1c77c5eea5a777ebcce6d761d5a9b5ab
diff --git a/package/czechlight-cfg-fs/czechlight-migrate.sh b/package/czechlight-cfg-fs/czechlight-migrate.sh
index fd49f60..bb95783 100755
--- a/package/czechlight-cfg-fs/czechlight-migrate.sh
+++ b/package/czechlight-cfg-fs/czechlight-migrate.sh
@@ -79,6 +79,7 @@
 done
 
 # store current version and save startup.json
+mkdir -p $(dirname ${CFG_STARTUP_FILE}) $(dirname ${CFG_VERSION_FILE})
 sysrepocfg -d startup -f json -X > "$CFG_STARTUP_FILE"
 echo "$CURRENT_VERSION" > "$CFG_VERSION_FILE"