That's a good idea.  We should probably wrap the creation of the clamav-scan.sh script in the same kind of guard.