fix a few issues with environments and mbaas admin commands