Add getenv_ulong() to read an integer from an environment variable