Add environment variable to shared.py

Adds a check for 'MARK2_CONFIG_DIR'