fix rt-89404: read() does not overwrite local archname

This pr contains the test posted to and fixes the bug described in https://rt.cpan.org/Ticket/Display.html?id=89404

Enjoy && Thanks,