updated perl script for osx temps