Fixed bug with core update script.