Move the "create IDE compat file" logic to a command line script (see #6270)