update gen-sql.sh
allow cloudos to use dyndns directly if credentials are provided. other minor fixes.