added permission fix for mac os x. Argument list too long error was fixed.