Remove chmod from composer post scripts and add flush=all