Add sh directive and replace bash function with sh function.
Fix style, opening curly brace on the same line as function declaration.
Merge pull request #256 from cliffano/master

Add sh directive and replace bash function with sh function.