rejig file::StartsWith() to maybe silence coverity