Removed anonymous function to support PHP 5.2
Fix for unit test Klarna_Checkout_UserAgentTest->testBasic failing on windows

Replaced ' ' with '.' in 'Windows NT' on the assumption that the lack of spaces in the os name is more important than accurate reports.
Changed method to public as otherwise it can't be passed to another