Fix script for cleanup of old xva files and pool metadata