Renamed {envpath} to {envdir}.
Better variable names, more stability in running commands, and a changedir option.