Added .git folder check and _wpeprivate check