Manage .git files when building and rebuilding drupal directory