Check that environment variable names are legalish.