Add check for symlinks