small clean up in bash template

Duplicated function require_arg removed, and fixed wrong comment about exec