Fix checking of environment variable for PHPCI config file.
Fix word wrapping on public key.

Closes #703