chmod on mac is completed before trying to run avrdude