fix link_file method in install.sh

fix the bug, so it will not create recursion link