Add checking for symlinks