Fixes indentation of "function".

A fix to make the correct indentation of the below code example work:

function test {
  echo "test"
}

In the original script it does only work for:

test() {
  echo "test"
}