Updated Old Version Deletion. Now runs a cleanup application on shutdown if update was done