Fix xformpoints to handle ~ in the path to a registration