Fixed a bug of containing .git in plugins.