Update deloy output
Fix typo in deploy script
Better environment detection for CLI
Updates for deploy controller