Fix bug caused by incorrect source path
Improve existing symlink checks