Improve output in php/deploy and hooks.py