Convert hardlinks handling to use uthash