gitweb: make sure $git_dir is undef if no project