Fix bash function example

Closes #37