Add fpm support for php 5.2

Adds fpm support for php 5.2 and hides mkdir error