Detect shell properly for debug output.
With mbstring required, no need to check function overloading setting. Just always use mbstring.