dot-getPEMFilePath function

Extract absolute path to the pem file