Uses ctypes instead of os.environ

Fixed posix environmental variables getting pulled from os.environ to ctypes to allow for use before init and in specific sudo environments. Example, when run from init.d droopy would error out because the environment variables fail to initialize within init.