updated braces autoindent

The old brace autoindent was not working with powershell. The new one works with powershell, but I haven't tested it in *nix yet.