fix mac os x shellscript