Fix bug with regex used for checking whether a file can be processed.
Only generate when the main generator has called process_changes_complete.