Fix broken prefix and debug leftover
Fix broken prefix and debug leftover

Additionally, fixes a type hint and makes sure that the new default
behaviour is to use the environment variable if given.

pythonnet/pythonnet,pythonnet/pythonnet,pythonnet/pythonnet