Fixed the code that removes old file versions for a final release.