Rename head and tail to dirname and basename

I think it's better to favor Unix jargon over Vim jargon.