BUG Ensure validation of environment name

Fixes #18