gitk: Improve handling of -- and ambiguous arguments