Correct the prompt length function on mac.

Something causes wc to count an extra character when on mac. This
fixes this issue by duplicating the echo.