Remove un-used/dead code.
Verify: only change permissions on 'dynamic' directory if it exists (new since civicrm 4.5).