Merge pull request #1 from smagch/master

fix conditional syntax
fixed logic for composer installation
fixed logic for composer updates
php-fpm config is now erb template
fixed prefix path for nginx build
added --with-debug to nginx build
modified php build paths to include version
added support for php error log file