Small fix to hardlink handling in file module