fix checking before replacing files.

add checking symbolic link existence before replace initial files.