fixes #110, warns on some incorrect ROS_IP and ROS_HOSTNAME entries

This is a cleanup of https://github.com/ros/ros_comm/pull/125

The code changes and the pep8 changes are now in separate commits