Adding nounset and errexit flags