Remove semicolon.
Updated path.
Fixed remote server function to script issues.

• Allowed public key to be rsa or dsa.
• Only create .ssh and .ssh/authorized_keys if they don't already exist.
• Fixed sytax on if statements.
• Exit instead of return in scripts.