oldpath is intentionally left at old value becase for relative path it create invalid target and for absolute path then symlink after changing root back point to wrong place