Bugfix: Check if file is a link