Fix url malformation when "version" is specified