mkversion: be more portable, use 'print "%s"' instead of 'echo -n'