Added Relink function

The relink function will do an atomic relink of a symlink to a new path
This is only used in the tests, so the convention is to create an `export_test.go` which exports the internal function as necessary.