Fix hardlinks; bug report #3 by @lutter