Module to determine executing environment.