Now works, can deploy locally and to other web server. Key was using bash, not zsh. There must be something wring with my zsh setup