Fix to delete temp files from derivative creation.