Minor deploy fixes

- Fix bashism
- use full path to php
Merge branch 'hotfix/ey-hook'