Improved deployment script to include config setup and sitemap permissions