center only if os != mac

that os.environ bit causes problems on macs.