Use correct #! line for bash scripts
Remove redundant 'function' prefixes