Fixed a typo in the compiled index file.
Restoring default compiled index file
Generalised way published pages save

So that file_id is not hard-coded into file so can be copied, etc.