Setup script now takes backup of changed files while deploying, and replaces the changed files with backups later. This is because the old solution sometimes replaces additional text on the reverse-replacement. Also changes the way commands are executed so that quoting of words works (corrects the quoting of sed argument).