fixed handling of environment during compile time (now via ENV_DIR)