Auto add package into scaffoldery.json if it does not already exist. Added an existence check before deleting undefined-master.zip.