Removed PHP 5.2 traces
Added chmod and touch in resource copying