Remove any existing symlink before creating a symlink
Factor out code to create a symlink