setup.sh: refactor symlinks creation

* Create two functions to checkout Silme and create symlinks
* Refactor symlinks creation using an array for branches
* Move symlink creation after repository checkout