fixed incorrect creating of symbolic links

now links in the to-be-linked path are first resolved using readlink
restaured repo building