Renamed function declaration to posix-syntax as it seems travis doesnt have full bash.