Ensure drain only runs when drain script exists