Fix #365 producing huge packages because of hard links

Following the discussion in #365, here is the implementation of tracking source device and inode numbers to preserve hard links. I was finally able to build git package with fpm :metal:.