link: work on files, not just dirs

Signed-off-by: Christopher Larson <kergoth@gmail.com>