Fix bug with unlink() passthrough to link()

Add logging