Fix a problem about goog init on unempty dir

fixes #7