Added check for upgrade script, removes it if found.