adjust permissions of settings.php, cleanup dirs in drupal deployment