expand ~ in Pyro key filename