Fixed problem where incomplete downloads left in app directory and are
detected as installed apps.