added debug logging for CONCATENATE_SCRIPTS flag