Add core-update.sh script
Make the docroot deletion more solid