Update code to reflect the package change cmd -> envcmd