mk: fix build ignoring other installed versions