fix bug on shared mode. should not remove shared config before symlinking.