Hack in this context is the name commonly used in Scotland for the skin surrounding the edges of the finger nail when it becomes dry and splits. It has nothing to do with a hacking cough, going hacking on a horse or indeed hacking into someone's computer!