Fix license file name canonicalisation
Move directory rotation to sync_and_process() method