[PATCH v2 13/13] env: Move non-cmd specific env functions to env/common.c