Fix publicKeyFile lookup, append ".pub"

- was not working for files starting with "~/"