Fix ensure_link to use -n option to treat symlinks to directories as normal files.