Fix branch --build option
Run other commands using the recommended method.
Fix- EnvironmentCommand::validateInput() caused CurlException.