Ensure self-notification doesn't run for scripts/rake tasks