Update AlwaysAppendSearchDomains.sh

Switched to using sed to edit the file, and hardcoded the new file permissions. Fixes issue with patch / diff going in the wrong place.