fix variable name and env path in install packages