Fix #334 - Do not allow fs.link on directories