try to be smart with link_target param

Signed-off-by: Robert Marklund <robbelibobban@gmail.com>
Merge pull request #20 from trollkarlen/master

try to be smart with link_target param