If this is a cleaner way to connect to a local robot, why not simply forego this check and set the hostname to localhost?
I get that this is giving people the option of using the sim without modifying their baxter.sh file, but it is going to give users who DO modify theirs a different network setup from those that don't and I worry that that might cause issues in the future.