modified pem normalization function. added scripts for password auto-typing