Updated deploy script with fixes and removal of unnecessary files from WordPress repository