Updating function declarations to avoid parse errors in some bash versions.
Merge pull request #315 from Jeraimee/master

Updating function declarations to avoid parse errors in some bash versions