I think the better solution is to append the `/` on both of these which will/should replace the symlink.