add suffix to links/aliases in the same directory as the original

In the case of aliases, this prevents the original from being overwritten.

fixes #1547
Merge pull request #1549 from skurfer/i1547

Prevent aliases from overwriting the original file