Add fpm support for php 5.2

Adds fpm support for php 5.2 and hides mkdir error on resource
But `-p` option should prevent this error. From `man mkdir`:

```
 -p, --parents
        no error if existing, make parent directories as needed
```