Fix script

Script correction to detect darwin based systems (OS X)