OC-8537: additional sanity checks for symlinks

- make sure to clean up symlinks before installing
- make sure to check that symlinks really exist after installation