Locate and parse keyfile