rmpkg: handle symlinks