fix for testing empty directories so that they are properly added to the git repository