fixes #177: command/server: auto-install: fix the bug that fails to install latest module
fixes #178: command/build: fix the bug that if build script fails, stderr and stdout will be missing.