Update composer scripts to deal with permissions errors