fixing link detection

fixes #80 
@jancborchardt