Fix darwin, attempt to fix linux permissions