ignore gitweb.git in scandir_replace function