ctdb-scripts: Move ctdb_get_ip_address() to functions file