lua_api.txt: optional dependencies
Ignore a trailing non-modname character in depends.txt or optdepends.txt lines.

Except question marks at the end of depends.txt lines, which still mean
optional dependencies.