Updated logic when getting acc_name element property for Mac OS.