fix a bug on specifying enviroment variable $ENS_CODE_ROOT