[BUGFIX] Move forgotten getEnvironmentMode()