Fix code around making symbolic links