Port isChecksumFile away from QRegExp
(cherry picked from commit 4bf5277f4c8c9beb1f58bc534305bc1054f2e67e)