Fix custom keyfile paths.