Fix issue providing pem file at unexpanded path