backported changes from vim.  Share dir is now saner