Fix pem_path_name for output