Add a version of device_getenv_int from dfly.
Use device_getenv_int(9).