Updated check for Apple Terminal.app