Fix "Operation not permitted" (PHP 5.3) and "Permission denied" (HHVM) errors