Added safety check for symlinks and simplified

The symlinks script can now be executed multiple times without it
messing up anything.
It is also now easier to call the script.