fix findFileOffsetByPattern argn check