More granular symlink rollback on postpublish

Basically the same as the previous version, but I run the revert relatively in the directory where the file lives, so it doesn't matter if it crosses submodule boundaries.