Minor script fix for mac