fix permissions on output folders