added a cloudify util method for getting local ip in plugins