Moved the new case-sensitive file checking code into the misc package with descriptive command names, to recapture clarity of code at the calling places.