Template for bash scripts providing basic error handling