Fix deleteonupdate without dir