improve gvim detection logic on Darwin.