Fix k for Linux

...using an atrocious Perl one liner