gitweb: Strip trailing slashes from $path in git_get_hash_by_path