Remove hardcoded environment names where isDebug switch is good enough

Ran into this being a problem since for local development I use the environment 'local'.
What do you think?