Refactored Rakefile to fix error with public key and error with zsh.