Fix function not being called
Ensure symlinks are removed before attempting to recreate them