Composer script handling directories permissions by making them writable both by the web server and the command line user.