Add fpm support for php 5.2

Adds fpm support for php 5.2 and hides mkdir error on resource
Ok this will be solved with #290. Could you please restore `shell/bashrc` before we merge?