Fixes #468 - file. Can't set permissions on hardlinks

Fixes #468 

Hopefully this isn't too much of a hack.