Fixed posix environmental variables getting pulled from os.environ to ctypes to allow for use before init and in specific sudo environments.