Updated the getHostNameorIpAddress function to traverse through the  list of avail. interfaces and return the ip associated with the first interface that is up and have ipv4 address associated with it. (if the user has not explicitly specified the ip/interface to use)
Fix of ipaddress issue.
Merge branch 'master' of https://github.com/usc-cloud/floe2