remove use of env vars in getCommandString