perform sed and mv in one line to replace allowed_hosts entry