Refactor setup link function in setup.sh so it is responsible for
running custom commands.

In addition these commands are now only executed if the symbolic
link is succesfully created.